// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: src/carnot/carnotpb/carnot.proto

package carnotpb

import (
	context "context"
	fmt "fmt"
	_ "github.com/gogo/protobuf/gogoproto"
	proto "github.com/gogo/protobuf/proto"
	grpc "google.golang.org/grpc"
	codes "google.golang.org/grpc/codes"
	status "google.golang.org/grpc/status"
	io "io"
	math "math"
	math_bits "math/bits"
	uuidpb "px.dev/pixie/src/api/proto/uuidpb"
	queryresultspb "px.dev/pixie/src/carnot/queryresultspb"
	statuspb "px.dev/pixie/src/common/base/statuspb"
	schemapb "px.dev/pixie/src/table_store/schemapb"
	reflect "reflect"
	strings "strings"
)

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package

type TransferResultChunkRequest struct {
	Address string       `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	QueryID *uuidpb.UUID `protobuf:"bytes,2,opt,name=query_id,json=queryId,proto3" json:"query_id,omitempty"`
	// Types that are valid to be assigned to Result:
	//	*TransferResultChunkRequest_QueryResult
	//	*TransferResultChunkRequest_ExecutionAndTimingInfo
	//	*TransferResultChunkRequest_ExecutionError
	//	*TransferResultChunkRequest_InitiateConn
	Result isTransferResultChunkRequest_Result `protobuf_oneof:"result"`
}

func (m *TransferResultChunkRequest) Reset()      { *m = TransferResultChunkRequest{} }
func (*TransferResultChunkRequest) ProtoMessage() {}
func (*TransferResultChunkRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_4ae58e1781b105be, []int{0}
}
func (m *TransferResultChunkRequest) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *TransferResultChunkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_TransferResultChunkRequest.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
		n, err := m.MarshalToSizedBuffer(b)
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
func (m *TransferResultChunkRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TransferResultChunkRequest.Merge(m, src)
}
func (m *TransferResultChunkRequest) XXX_Size() int {
	return m.Size()
}
func (m *TransferResultChunkRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_TransferResultChunkRequest.DiscardUnknown(m)
}

var xxx_messageInfo_TransferResultChunkRequest proto.InternalMessageInfo

type isTransferResultChunkRequest_Result interface {
	isTransferResultChunkRequest_Result()
	Equal(interface{}) bool
	MarshalTo([]byte) (int, error)
	Size() int
}

type TransferResultChunkRequest_QueryResult struct {
	QueryResult *TransferResultChunkRequest_SinkResult `protobuf:"bytes,5,opt,name=query_result,json=queryResult,proto3,oneof" json:"query_result,omitempty"`
}
type TransferResultChunkRequest_ExecutionAndTimingInfo struct {
	ExecutionAndTimingInfo *TransferResultChunkRequest_QueryExecutionAndTimingInfo `protobuf:"bytes,6,opt,name=execution_and_timing_info,json=executionAndTimingInfo,proto3,oneof" json:"execution_and_timing_info,omitempty"`
}
type TransferResultChunkRequest_ExecutionError struct {
	ExecutionError *statuspb.Status `protobuf:"bytes,7,opt,name=execution_error,json=executionError,proto3,oneof" json:"execution_error,omitempty"`
}
type TransferResultChunkRequest_InitiateConn struct {
	InitiateConn *TransferResultChunkRequest_InitiateConnection `protobuf:"bytes,8,opt,name=initiate_conn,json=initiateConn,proto3,oneof" json:"initiate_conn,omitempty"`
}

func (*TransferResultChunkRequest_QueryResult) isTransferResultChunkRequest_Result()            {}
func (*TransferResultChunkRequest_ExecutionAndTimingInfo) isTransferResultChunkRequest_Result() {}
func (*TransferResultChunkRequest_ExecutionError) isTransferResultChunkRequest_Result()         {}
func (*TransferResultChunkRequest_InitiateConn) isTransferResultChunkRequest_Result()           {}

func (m *TransferResultChunkRequest) GetResult() isTransferResultChunkRequest_Result {
	if m != nil {
		return m.Result
	}
	return nil
}

func (m *TransferResultChunkRequest) GetAddress() string {
	if m != nil {
		return m.Address
	}
	return ""
}

func (m *TransferResultChunkRequest) GetQueryID() *uuidpb.UUID {
	if m != nil {
		return m.QueryID
	}
	return nil
}

func (m *TransferResultChunkRequest) GetQueryResult() *TransferResultChunkRequest_SinkResult {
	if x, ok := m.GetResult().(*TransferResultChunkRequest_QueryResult); ok {
		return x.QueryResult
	}
	return nil
}

func (m *TransferResultChunkRequest) GetExecutionAndTimingInfo() *TransferResultChunkRequest_QueryExecutionAndTimingInfo {
	if x, ok := m.GetResult().(*TransferResultChunkRequest_ExecutionAndTimingInfo); ok {
		return x.ExecutionAndTimingInfo
	}
	return nil
}

func (m *TransferResultChunkRequest) GetExecutionError() *statuspb.Status {
	if x, ok := m.GetResult().(*TransferResultChunkRequest_ExecutionError); ok {
		return x.ExecutionError
	}
	return nil
}

func (m *TransferResultChunkRequest) GetInitiateConn() *TransferResultChunkRequest_InitiateConnection {
	if x, ok := m.GetResult().(*TransferResultChunkRequest_InitiateConn); ok {
		return x.InitiateConn
	}
	return nil
}

// XXX_OneofWrappers is for the internal use of the proto package.
func (*TransferResultChunkRequest) XXX_OneofWrappers() []interface{} {
	return []interface{}{
		(*TransferResultChunkRequest_QueryResult)(nil),
		(*TransferResultChunkRequest_ExecutionAndTimingInfo)(nil),
		(*TransferResultChunkRequest_ExecutionError)(nil),
		(*TransferResultChunkRequest_InitiateConn)(nil),
	}
}

type TransferResultChunkRequest_SinkResult struct {
	// Types that are valid to be assigned to ResultContents:
	//	*TransferResultChunkRequest_SinkResult_RowBatch
	ResultContents isTransferResultChunkRequest_SinkResult_ResultContents `protobuf_oneof:"result_contents"`
	// Types that are valid to be assigned to Destination:
	//	*TransferResultChunkRequest_SinkResult_GRPCSourceID
	//	*TransferResultChunkRequest_SinkResult_TableName
	Destination isTransferResultChunkRequest_SinkResult_Destination `protobuf_oneof:"destination"`
}

func (m *TransferResultChunkRequest_SinkResult) Reset()      { *m = TransferResultChunkRequest_SinkResult{} }
func (*TransferResultChunkRequest_SinkResult) ProtoMessage() {}
func (*TransferResultChunkRequest_SinkResult) Descriptor() ([]byte, []int) {
	return fileDescriptor_4ae58e1781b105be, []int{0, 0}
}
func (m *TransferResultChunkRequest_SinkResult) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *TransferResultChunkRequest_SinkResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_TransferResultChunkRequest_SinkResult.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
		n, err := m.MarshalToSizedBuffer(b)
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
func (m *TransferResultChunkRequest_SinkResult) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TransferResultChunkRequest_SinkResult.Merge(m, src)
}
func (m *TransferResultChunkRequest_SinkResult) XXX_Size() int {
	return m.Size()
}
func (m *TransferResultChunkRequest_SinkResult) XXX_DiscardUnknown() {
	xxx_messageInfo_TransferResultChunkRequest_SinkResult.DiscardUnknown(m)
}

var xxx_messageInfo_TransferResultChunkRequest_SinkResult proto.InternalMessageInfo

type isTransferResultChunkRequest_SinkResult_ResultContents interface {
	isTransferResultChunkRequest_SinkResult_ResultContents()
	Equal(interface{}) bool
	MarshalTo([]byte) (int, error)
	Size() int
}
type isTransferResultChunkRequest_SinkResult_Destination interface {
	isTransferResultChunkRequest_SinkResult_Destination()
	Equal(interface{}) bool
	MarshalTo([]byte) (int, error)
	Size() int
}

type TransferResultChunkRequest_SinkResult_RowBatch struct {
	RowBatch *schemapb.RowBatchData `protobuf:"bytes,1,opt,name=row_batch,json=rowBatch,proto3,oneof" json:"row_batch,omitempty"`
}
type TransferResultChunkRequest_SinkResult_GRPCSourceID struct {
	GRPCSourceID uint64 `protobuf:"varint,2,opt,name=grpc_source_id,json=grpcSourceId,proto3,oneof" json:"grpc_source_id,omitempty"`
}
type TransferResultChunkRequest_SinkResult_TableName struct {
	TableName string `protobuf:"bytes,3,opt,name=table_name,json=tableName,proto3,oneof" json:"table_name,omitempty"`
}

func (*TransferResultChunkRequest_SinkResult_RowBatch) isTransferResultChunkRequest_SinkResult_ResultContents() {
}
func (*TransferResultChunkRequest_SinkResult_GRPCSourceID) isTransferResultChunkRequest_SinkResult_Destination() {
}
func (*TransferResultChunkRequest_SinkResult_TableName) isTransferResultChunkRequest_SinkResult_Destination() {
}

func (m *TransferResultChunkRequest_SinkResult) GetResultContents() isTransferResultChunkRequest_SinkResult_ResultContents {
	if m != nil {
		return m.ResultContents
	}
	return nil
}
func (m *TransferResultChunkRequest_SinkResult) GetDestination() isTransferResultChunkRequest_SinkResult_Destination {
	if m != nil {
		return m.Destination
	}
	return nil
}

func (m *TransferResultChunkRequest_SinkResult) GetRowBatch() *schemapb.RowBatchData {
	if x, ok := m.GetResultContents().(*TransferResultChunkRequest_SinkResult_RowBatch); ok {
		return x.RowBatch
	}
	return nil
}

func (m *TransferResultChunkRequest_SinkResult) GetGRPCSourceID() uint64 {
	if x, ok := m.GetDestination().(*TransferResultChunkRequest_SinkResult_GRPCSourceID); ok {
		return x.GRPCSourceID
	}
	return 0
}

func (m *TransferResultChunkRequest_SinkResult) GetTableName() string {
	if x, ok := m.GetDestination().(*TransferResultChunkRequest_SinkResult_TableName); ok {
		return x.TableName
	}
	return ""
}

// XXX_OneofWrappers is for the internal use of the proto package.
func (*TransferResultChunkRequest_SinkResult) XXX_OneofWrappers() []interface{} {
	return []interface{}{
		(*TransferResultChunkRequest_SinkResult_RowBatch)(nil),
		(*TransferResultChunkRequest_SinkResult_GRPCSourceID)(nil),
		(*TransferResultChunkRequest_SinkResult_TableName)(nil),
	}
}

type TransferResultChunkRequest_QueryExecutionAndTimingInfo struct {
	ExecutionStats      *queryresultspb.QueryExecutionStats   `protobuf:"bytes,2,opt,name=execution_stats,json=executionStats,proto3" json:"execution_stats,omitempty"`
	AgentExecutionStats []*queryresultspb.AgentExecutionStats `protobuf:"bytes,3,rep,name=agent_execution_stats,json=agentExecutionStats,proto3" json:"agent_execution_stats,omitempty"`
}

func (m *TransferResultChunkRequest_QueryExecutionAndTimingInfo) Reset() {
	*m = TransferResultChunkRequest_QueryExecutionAndTimingInfo{}
}
func (*TransferResultChunkRequest_QueryExecutionAndTimingInfo) ProtoMessage() {}
func (*TransferResultChunkRequest_QueryExecutionAndTimingInfo) Descriptor() ([]byte, []int) {
	return fileDescriptor_4ae58e1781b105be, []int{0, 1}
}
func (m *TransferResultChunkRequest_QueryExecutionAndTimingInfo) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *TransferResultChunkRequest_QueryExecutionAndTimingInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_TransferResultChunkRequest_QueryExecutionAndTimingInfo.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
		n, err := m.MarshalToSizedBuffer(b)
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
func (m *TransferResultChunkRequest_QueryExecutionAndTimingInfo) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TransferResultChunkRequest_QueryExecutionAndTimingInfo.Merge(m, src)
}
func (m *TransferResultChunkRequest_QueryExecutionAndTimingInfo) XXX_Size() int {
	return m.Size()
}
func (m *TransferResultChunkRequest_QueryExecutionAndTimingInfo) XXX_DiscardUnknown() {
	xxx_messageInfo_TransferResultChunkRequest_QueryExecutionAndTimingInfo.DiscardUnknown(m)
}

var xxx_messageInfo_TransferResultChunkRequest_QueryExecutionAndTimingInfo proto.InternalMessageInfo

func (m *TransferResultChunkRequest_QueryExecutionAndTimingInfo) GetExecutionStats() *queryresultspb.QueryExecutionStats {
	if m != nil {
		return m.ExecutionStats
	}
	return nil
}

func (m *TransferResultChunkRequest_QueryExecutionAndTimingInfo) GetAgentExecutionStats() []*queryresultspb.AgentExecutionStats {
	if m != nil {
		return m.AgentExecutionStats
	}
	return nil
}

type TransferResultChunkRequest_InitiateConnection struct {
}

func (m *TransferResultChunkRequest_InitiateConnection) Reset() {
	*m = TransferResultChunkRequest_InitiateConnection{}
}
func (*TransferResultChunkRequest_InitiateConnection) ProtoMessage() {}
func (*TransferResultChunkRequest_InitiateConnection) Descriptor() ([]byte, []int) {
	return fileDescriptor_4ae58e1781b105be, []int{0, 2}
}
func (m *TransferResultChunkRequest_InitiateConnection) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *TransferResultChunkRequest_InitiateConnection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_TransferResultChunkRequest_InitiateConnection.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
		n, err := m.MarshalToSizedBuffer(b)
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
func (m *TransferResultChunkRequest_InitiateConnection) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TransferResultChunkRequest_InitiateConnection.Merge(m, src)
}
func (m *TransferResultChunkRequest_InitiateConnection) XXX_Size() int {
	return m.Size()
}
func (m *TransferResultChunkRequest_InitiateConnection) XXX_DiscardUnknown() {
	xxx_messageInfo_TransferResultChunkRequest_InitiateConnection.DiscardUnknown(m)
}

var xxx_messageInfo_TransferResultChunkRequest_InitiateConnection proto.InternalMessageInfo

type TransferResultChunkResponse struct {
	Success bool   `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
}

func (m *TransferResultChunkResponse) Reset()      { *m = TransferResultChunkResponse{} }
func (*TransferResultChunkResponse) ProtoMessage() {}
func (*TransferResultChunkResponse) Descriptor() ([]byte, []int) {
	return fileDescriptor_4ae58e1781b105be, []int{1}
}
func (m *TransferResultChunkResponse) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *TransferResultChunkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_TransferResultChunkResponse.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
		n, err := m.MarshalToSizedBuffer(b)
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
func (m *TransferResultChunkResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TransferResultChunkResponse.Merge(m, src)
}
func (m *TransferResultChunkResponse) XXX_Size() int {
	return m.Size()
}
func (m *TransferResultChunkResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_TransferResultChunkResponse.DiscardUnknown(m)
}

var xxx_messageInfo_TransferResultChunkResponse proto.InternalMessageInfo

func (m *TransferResultChunkResponse) GetSuccess() bool {
	if m != nil {
		return m.Success
	}
	return false
}

func (m *TransferResultChunkResponse) GetMessage() string {
	if m != nil {
		return m.Message
	}
	return ""
}

func init() {
	proto.RegisterType((*TransferResultChunkRequest)(nil), "px.carnotpb.TransferResultChunkRequest")
	proto.RegisterType((*TransferResultChunkRequest_SinkResult)(nil), "px.carnotpb.TransferResultChunkRequest.SinkResult")
	proto.RegisterType((*TransferResultChunkRequest_QueryExecutionAndTimingInfo)(nil), "px.carnotpb.TransferResultChunkRequest.QueryExecutionAndTimingInfo")
	proto.RegisterType((*TransferResultChunkRequest_InitiateConnection)(nil), "px.carnotpb.TransferResultChunkRequest.InitiateConnection")
	proto.RegisterType((*TransferResultChunkResponse)(nil), "px.carnotpb.TransferResultChunkResponse")
}

func init() { proto.RegisterFile("src/carnot/carnotpb/carnot.proto", fileDescriptor_4ae58e1781b105be) }

var fileDescriptor_4ae58e1781b105be = []byte{
	// 753 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0x41, 0x4f, 0xc3, 0x36,
	0x14, 0x8e, 0x69, 0xa1, 0xa9, 0x5b, 0xa0, 0x84, 0x6d, 0xca, 0x8a, 0x94, 0x56, 0x48, 0x68, 0xbd,
	0x90, 0x4a, 0xdd, 0x61, 0xd3, 0x0e, 0x48, 0xb4, 0x45, 0x6b, 0x39, 0x4c, 0x23, 0x85, 0x4d, 0xda,
	0x25, 0x72, 0x12, 0xb7, 0xcd, 0x46, 0xec, 0x60, 0x3b, 0x83, 0x9d, 0xc6, 0x4f, 0xd8, 0xcf, 0xd8,
	0x4f, 0xd9, 0x11, 0x69, 0x9a, 0xc4, 0x09, 0x8d, 0x70, 0xd9, 0x91, 0x9f, 0x30, 0xd9, 0x49, 0x46,
	0x06, 0x8c, 0x71, 0xca, 0xfb, 0xec, 0xcf, 0xdf, 0x7b, 0x7e, 0xef, 0x73, 0x60, 0x97, 0x33, 0xbf,
	0xef, 0x23, 0x46, 0xa8, 0xc8, 0x3f, 0xb1, 0x97, 0x07, 0x76, 0xcc, 0xa8, 0xa0, 0x46, 0x23, 0xbe,
	0xb2, 0x8b, 0x9d, 0xf6, 0xfe, 0x22, 0x14, 0xcb, 0xc4, 0xb3, 0x7d, 0x1a, 0xf5, 0x17, 0x74, 0x41,
	0xfb, 0x8a, 0xe3, 0x25, 0x73, 0x85, 0x14, 0x50, 0x51, 0x76, 0xb6, 0xdd, 0x91, 0xea, 0x28, 0x0e,
	0x33, 0x5a, 0x3f, 0x49, 0xc2, 0x20, 0xf6, 0xd4, 0x27, 0x27, 0xec, 0x97, 0xd2, 0x5f, 0x24, 0x98,
	0xfd, 0xc4, 0x30, 0x4f, 0xce, 0x05, 0x8f, 0xbd, 0x0c, 0xba, 0x39, 0xce, 0xe9, 0x7b, 0x92, 0x2e,
	0x90, 0x77, 0x8e, 0x5d, 0x2e, 0x28, 0xc3, 0x7d, 0xee, 0x2f, 0x71, 0x84, 0x62, 0x2f, 0x0f, 0xca,
	0x34, 0x9f, 0x46, 0x11, 0x25, 0x7d, 0x0f, 0x71, 0xdc, 0xe7, 0x02, 0x89, 0x44, 0x8a, 0x66, 0x41,
	0x46, 0xdb, 0xfd, 0xbd, 0x06, 0xdb, 0xa7, 0x0c, 0x11, 0x3e, 0xc7, 0xcc, 0x51, 0x79, 0x46, 0xcb,
	0x84, 0xfc, 0xe0, 0xe0, 0x8b, 0x04, 0x73, 0x61, 0x98, 0xb0, 0x86, 0x82, 0x80, 0x61, 0xce, 0x4d,
	0xd0, 0x05, 0xbd, 0xba, 0x53, 0x40, 0xe3, 0x33, 0xa8, 0x67, 0xd5, 0x85, 0x81, 0xb9, 0xd2, 0x05,
	0xbd, 0xc6, 0x60, 0xd3, 0x8e, 0xaf, 0xec, 0xec, 0x7a, 0xf6, 0xd9, 0xd9, 0x74, 0x3c, 0x6c, 0xa4,
	0x77, 0x9d, 0xda, 0x89, 0x24, 0x4d, 0xc7, 0x4e, 0x4d, 0xb1, 0xa7, 0x81, 0xf1, 0x2d, 0x6c, 0x96,
	0xaf, 0x65, 0xae, 0xaa, 0xc3, 0x03, 0xbb, 0xd4, 0x62, 0xfb, 0xbf, 0x2b, 0xb2, 0x67, 0xa1, 0x8c,
	0xe5, 0xf2, 0x44, 0x73, 0x1a, 0x4a, 0x29, 0x83, 0xc6, 0x35, 0x80, 0x1f, 0xe3, 0x2b, 0xec, 0x27,
	0x22, 0xa4, 0xc4, 0x45, 0x24, 0x70, 0x45, 0x18, 0x85, 0x64, 0xe1, 0x86, 0x64, 0x4e, 0xcd, 0x35,
	0x95, 0x66, 0xf4, 0xde, 0x34, 0xaa, 0xec, 0xa3, 0x42, 0xed, 0x90, 0x04, 0xa7, 0x4a, 0x6b, 0x4a,
	0xe6, 0x74, 0xa2, 0x39, 0x1f, 0xe1, 0x57, 0x77, 0x8c, 0x03, 0xb8, 0xf9, 0x54, 0x01, 0x66, 0x8c,
	0x32, 0xb3, 0xa6, 0xf2, 0x6e, 0xcb, 0xbc, 0xc5, 0x04, 0xec, 0x99, 0x0a, 0x26, 0x9a, 0xb3, 0xf1,
	0x0f, 0xfb, 0x48, 0x92, 0x0d, 0x04, 0xd7, 0x43, 0x12, 0x8a, 0x10, 0x09, 0xec, 0xfa, 0x94, 0x10,
	0x53, 0x57, 0xa7, 0xbf, 0x78, 0x6f, 0xd5, 0xd3, 0xfc, 0xf0, 0x88, 0x12, 0x82, 0x7d, 0xa9, 0x3b,
	0xd1, 0x9c, 0x66, 0x58, 0x5a, 0x6d, 0xff, 0x01, 0x20, 0x7c, 0xea, 0xa1, 0x31, 0x86, 0x75, 0x46,
	0x2f, 0x5d, 0x0f, 0x09, 0x7f, 0xa9, 0x46, 0xdc, 0x18, 0xec, 0xc9, 0x6c, 0x25, 0x83, 0xd9, 0x85,
	0xc1, 0x6c, 0x87, 0x5e, 0x0e, 0x25, 0x71, 0x8c, 0x04, 0x9a, 0x68, 0x8e, 0xce, 0x72, 0x6c, 0x7c,
	0x0e, 0x37, 0x16, 0x2c, 0xf6, 0x5d, 0x4e, 0x13, 0xe6, 0xe3, 0xc2, 0x12, 0xd5, 0x61, 0x2b, 0xbd,
	0xeb, 0x34, 0xbf, 0x74, 0xbe, 0x1e, 0xcd, 0xd4, 0xc6, 0x74, 0x3c, 0x01, 0x4e, 0x53, 0x32, 0x73,
	0x1c, 0x18, 0x1d, 0x08, 0xb3, 0x54, 0x04, 0x45, 0xd8, 0xac, 0x48, 0x8f, 0x4d, 0x80, 0x53, 0x57,
	0x6b, 0x5f, 0xa1, 0x08, 0x0f, 0xb7, 0xe0, 0x66, 0x66, 0x14, 0xd9, 0x10, 0x81, 0x89, 0xe0, 0xc3,
	0x75, 0xd8, 0x08, 0x30, 0x17, 0x21, 0x41, 0xf2, 0x86, 0xc7, 0x55, 0xbd, 0xda, 0x5a, 0x6d, 0xdf,
	0x01, 0xb8, 0xf3, 0xc6, 0xd0, 0x8c, 0x6f, 0xca, 0xa3, 0x91, 0x93, 0xe0, 0xb9, 0x6d, 0xf7, 0x9f,
	0x9a, 0x6b, 0xff, 0xfb, 0xf9, 0x3d, 0x33, 0x81, 0x9c, 0x1a, 0x2f, 0x8d, 0x4c, 0x61, 0x03, 0xc1,
	0x0f, 0xd1, 0x02, 0x13, 0xe1, 0x3e, 0x57, 0xaf, 0x74, 0x2b, 0x6f, 0xab, 0x1f, 0xca, 0x63, 0xcf,
	0xd4, 0xb7, 0xd1, 0xcb, 0xc5, 0xe3, 0xaa, 0x0e, 0x5a, 0x2b, 0xed, 0x0f, 0xa0, 0xf1, 0x72, 0xbc,
	0x43, 0x1d, 0xae, 0x65, 0x8a, 0xc7, 0x55, 0xbd, 0xd2, 0xaa, 0x66, 0xcd, 0xd8, 0x3d, 0x81, 0x3b,
	0xaf, 0xba, 0x84, 0xc7, 0x94, 0x70, 0x2c, 0x5f, 0x35, 0x4f, 0x7c, 0xbf, 0x78, 0xd5, 0xba, 0x53,
	0x40, 0xb9, 0x13, 0x61, 0xce, 0xd1, 0x02, 0xab, 0xee, 0xd4, 0x9d, 0x02, 0x0e, 0x7e, 0x86, 0x5b,
	0x99, 0x94, 0x34, 0xcf, 0x0c, 0xb3, 0x1f, 0x43, 0x1f, 0x1b, 0xdf, 0xc3, 0xed, 0x57, 0xf2, 0x18,
	0x9f, 0xbc, 0xd3, 0xaf, 0xed, 0xde, 0xff, 0x13, 0xb3, 0x92, 0x7b, 0x60, 0x78, 0x70, 0x73, 0x6f,
	0x69, 0xb7, 0xf7, 0x96, 0xf6, 0x78, 0x6f, 0x81, 0xeb, 0xd4, 0x02, 0xbf, 0xa6, 0x16, 0xf8, 0x2d,
	0xb5, 0xc0, 0x4d, 0x6a, 0x81, 0x3f, 0x53, 0x0b, 0xfc, 0x95, 0x5a, 0xda, 0x63, 0x6a, 0x81, 0x5f,
	0x1e, 0x2c, 0xed, 0xe6, 0xc1, 0xd2, 0x6e, 0x1f, 0x2c, 0xed, 0x3b, 0xbd, 0x50, 0xf7, 0xd6, 0xd4,
	0x0f, 0xef, 0xd3, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xc4, 0xd7, 0x69, 0xd1, 0xee, 0x05, 0x00,
	0x00,
}

func (this *TransferResultChunkRequest) Equal(that interface{}) bool {
	if that == nil {
		return this == nil
	}

	that1, ok := that.(*TransferResultChunkRequest)
	if !ok {
		that2, ok := that.(TransferResultChunkRequest)
		if ok {
			that1 = &that2
		} else {
			return false
		}
	}
	if that1 == nil {
		return this == nil
	} else if this == nil {
		return false
	}
	if this.Address != that1.Address {
		return false
	}
	if !this.QueryID.Equal(that1.QueryID) {
		return false
	}
	if that1.Result == nil {
		if this.Result != nil {
			return false
		}
	} else if this.Result == nil {
		return false
	} else if !this.Result.Equal(that1.Result) {
		return false
	}
	return true
}
func (this *TransferResultChunkRequest_QueryResult) Equal(that interface{}) bool {
	if that == nil {
		return this == nil
	}

	that1, ok := that.(*TransferResultChunkRequest_QueryResult)
	if !ok {
		that2, ok := that.(TransferResultChunkRequest_QueryResult)
		if ok {
			that1 = &that2
		} else {
			return false
		}
	}
	if that1 == nil {
		return this == nil
	} else if this == nil {
		return false
	}
	if !this.QueryResult.Equal(that1.QueryResult) {
		return false
	}
	return true
}
func (this *TransferResultChunkRequest_ExecutionAndTimingInfo) Equal(that interface{}) bool {
	if that == nil {
		return this == nil
	}

	that1, ok := that.(*TransferResultChunkRequest_ExecutionAndTimingInfo)
	if !ok {
		that2, ok := that.(TransferResultChunkRequest_ExecutionAndTimingInfo)
		if ok {
			that1 = &that2
		} else {
			return false
		}
	}
	if that1 == nil {
		return this == nil
	} else if this == nil {
		return false
	}
	if !this.ExecutionAndTimingInfo.Equal(that1.ExecutionAndTimingInfo) {
		return false
	}
	return true
}
func (this *TransferResultChunkRequest_ExecutionError) Equal(that interface{}) bool {
	if that == nil {
		return this == nil
	}

	that1, ok := that.(*TransferResultChunkRequest_ExecutionError)
	if !ok {
		that2, ok := that.(TransferResultChunkRequest_ExecutionError)
		if ok {
			that1 = &that2
		} else {
			return false
		}
	}
	if that1 == nil {
		return this == nil
	} else if this == nil {
		return false
	}
	if !this.ExecutionError.Equal(that1.ExecutionError) {
		return false
	}
	return true
}
func (this *TransferResultChunkRequest_InitiateConn) Equal(that interface{}) bool {
	if that == nil {
		return this == nil
	}

	that1, ok := that.(*TransferResultChunkRequest_InitiateConn)
	if !ok {
		that2, ok := that.(TransferResultChunkRequest_InitiateConn)
		if ok {
			that1 = &that2
		} else {
			return false
		}
	}
	if that1 == nil {
		return this == nil
	} else if this == nil {
		return false
	}
	if !this.InitiateConn.Equal(that1.InitiateConn) {
		return false
	}
	return true
}
func (this *TransferResultChunkRequest_SinkResult) Equal(that interface{}) bool {
	if that == nil {
		return this == nil
	}

	that1, ok := that.(*TransferResultChunkRequest_SinkResult)
	if !ok {
		that2, ok := that.(TransferResultChunkRequest_SinkResult)
		if ok {
			that1 = &that2
		} else {
			return false
		}
	}
	if that1 == nil {
		return this == nil
	} else if this == nil {
		return false
	}
	if that1.ResultContents == nil {
		if this.ResultContents != nil {
			return false
		}
	} else if this.ResultContents == nil {
		return false
	} else if !this.ResultContents.Equal(that1.ResultContents) {
		return false
	}
	if that1.Destination == nil {
		if this.Destination != nil {
			return false
		}
	} else if this.Destination == nil {
		return false
	} else if !this.Destination.Equal(that1.Destination) {
		return false
	}
	return true
}
func (this *TransferResultChunkRequest_SinkResult_RowBatch) Equal(that interface{}) bool {
	if that == nil {
		return this == nil
	}

	that1, ok := that.(*TransferResultChunkRequest_SinkResult_RowBatch)
	if !ok {
		that2, ok := that.(TransferResultChunkRequest_SinkResult_RowBatch)
		if ok {
			that1 = &that2
		} else {
			return false
		}
	}
	if that1 == nil {
		return this == nil
	} else if this == nil {
		return false
	}
	if !this.RowBatch.Equal(that1.RowBatch) {
		return false
	}
	return true
}
func (this *TransferResultChunkRequest_SinkResult_GRPCSourceID) Equal(that interface{}) bool {
	if that == nil {
		return this == nil
	}

	that1, ok := that.(*TransferResultChunkRequest_SinkResult_GRPCSourceID)
	if !ok {
		that2, ok := that.(TransferResultChunkRequest_SinkResult_GRPCSourceID)
		if ok {
			that1 = &that2
		} else {
			return false
		}
	}
	if that1 == nil {
		return this == nil
	} else if this == nil {
		return false
	}
	if this.GRPCSourceID != that1.GRPCSourceID {
		return false
	}
	return true
}
func (this *TransferResultChunkRequest_SinkResult_TableName) Equal(that interface{}) bool {
	if that == nil {
		return this == nil
	}

	that1, ok := that.(*TransferResultChunkRequest_SinkResult_TableName)
	if !ok {
		that2, ok := that.(TransferResultChunkRequest_SinkResult_TableName)
		if ok {
			that1 = &that2
		} else {
			return false
		}
	}
	if that1 == nil {
		return this == nil
	} else if this == nil {
		return false
	}
	if this.TableName != that1.TableName {
		return false
	}
	return true
}
func (this *TransferResultChunkRequest_QueryExecutionAndTimingInfo) Equal(that interface{}) bool {
	if that == nil {
		return this == nil
	}

	that1, ok := that.(*TransferResultChunkRequest_QueryExecutionAndTimingInfo)
	if !ok {
		that2, ok := that.(TransferResultChunkRequest_QueryExecutionAndTimingInfo)
		if ok {
			that1 = &that2
		} else {
			return false
		}
	}
	if that1 == nil {
		return this == nil
	} else if this == nil {
		return false
	}
	if !this.ExecutionStats.Equal(that1.ExecutionStats) {
		return false
	}
	if len(this.AgentExecutionStats) != len(that1.AgentExecutionStats) {
		return false
	}
	for i := range this.AgentExecutionStats {
		if !this.AgentExecutionStats[i].Equal(that1.AgentExecutionStats[i]) {
			return false
		}
	}
	return true
}
func (this *TransferResultChunkRequest_InitiateConnection) Equal(that interface{}) bool {
	if that == nil {
		return this == nil
	}

	that1, ok := that.(*TransferResultChunkRequest_InitiateConnection)
	if !ok {
		that2, ok := that.(TransferResultChunkRequest_InitiateConnection)
		if ok {
			that1 = &that2
		} else {
			return false
		}
	}
	if that1 == nil {
		return this == nil
	} else if this == nil {
		return false
	}
	return true
}
func (this *TransferResultChunkResponse) Equal(that interface{}) bool {
	if that == nil {
		return this == nil
	}

	that1, ok := that.(*TransferResultChunkResponse)
	if !ok {
		that2, ok := that.(TransferResultChunkResponse)
		if ok {
			that1 = &that2
		} else {
			return false
		}
	}
	if that1 == nil {
		return this == nil
	} else if this == nil {
		return false
	}
	if this.Success != that1.Success {
		return false
	}
	if this.Message != that1.Message {
		return false
	}
	return true
}
func (this *TransferResultChunkRequest) GoString() string {
	if this == nil {
		return "nil"
	}
	s := make([]string, 0, 10)
	s = append(s, "&carnotpb.TransferResultChunkRequest{")
	s = append(s, "Address: "+fmt.Sprintf("%#v", this.Address)+",\n")
	if this.QueryID != nil {
		s = append(s, "QueryID: "+fmt.Sprintf("%#v", this.QueryID)+",\n")
	}
	if this.Result != nil {
		s = append(s, "Result: "+fmt.Sprintf("%#v", this.Result)+",\n")
	}
	s = append(s, "}")
	return strings.Join(s, "")
}
func (this *TransferResultChunkRequest_QueryResult) GoString() string {
	if this == nil {
		return "nil"
	}
	s := strings.Join([]string{`&carnotpb.TransferResultChunkRequest_QueryResult{` +
		`QueryResult:` + fmt.Sprintf("%#v", this.QueryResult) + `}`}, ", ")
	return s
}
func (this *TransferResultChunkRequest_ExecutionAndTimingInfo) GoString() string {
	if this == nil {
		return "nil"
	}
	s := strings.Join([]string{`&carnotpb.TransferResultChunkRequest_ExecutionAndTimingInfo{` +
		`ExecutionAndTimingInfo:` + fmt.Sprintf("%#v", this.ExecutionAndTimingInfo) + `}`}, ", ")
	return s
}
func (this *TransferResultChunkRequest_ExecutionError) GoString() string {
	if this == nil {
		return "nil"
	}
	s := strings.Join([]string{`&carnotpb.TransferResultChunkRequest_ExecutionError{` +
		`ExecutionError:` + fmt.Sprintf("%#v", this.ExecutionError) + `}`}, ", ")
	return s
}
func (this *TransferResultChunkRequest_InitiateConn) GoString() string {
	if this == nil {
		return "nil"
	}
	s := strings.Join([]string{`&carnotpb.TransferResultChunkRequest_InitiateConn{` +
		`InitiateConn:` + fmt.Sprintf("%#v", this.InitiateConn) + `}`}, ", ")
	return s
}
func (this *TransferResultChunkRequest_SinkResult) GoString() string {
	if this == nil {
		return "nil"
	}
	s := make([]string, 0, 7)
	s = append(s, "&carnotpb.TransferResultChunkRequest_SinkResult{")
	if this.ResultContents != nil {
		s = append(s, "ResultContents: "+fmt.Sprintf("%#v", this.ResultContents)+",\n")
	}
	if this.Destination != nil {
		s = append(s, "Destination: "+fmt.Sprintf("%#v", this.Destination)+",\n")
	}
	s = append(s, "}")
	return strings.Join(s, "")
}
func (this *TransferResultChunkRequest_SinkResult_RowBatch) GoString() string {
	if this == nil {
		return "nil"
	}
	s := strings.Join([]string{`&carnotpb.TransferResultChunkRequest_SinkResult_RowBatch{` +
		`RowBatch:` + fmt.Sprintf("%#v", this.RowBatch) + `}`}, ", ")
	return s
}
func (this *TransferResultChunkRequest_SinkResult_GRPCSourceID) GoString() string {
	if this == nil {
		return "nil"
	}
	s := strings.Join([]string{`&carnotpb.TransferResultChunkRequest_SinkResult_GRPCSourceID{` +
		`GRPCSourceID:` + fmt.Sprintf("%#v", this.GRPCSourceID) + `}`}, ", ")
	return s
}
func (this *TransferResultChunkRequest_SinkResult_TableName) GoString() string {
	if this == nil {
		return "nil"
	}
	s := strings.Join([]string{`&carnotpb.TransferResultChunkRequest_SinkResult_TableName{` +
		`TableName:` + fmt.Sprintf("%#v", this.TableName) + `}`}, ", ")
	return s
}
func (this *TransferResultChunkRequest_QueryExecutionAndTimingInfo) GoString() string {
	if this == nil {
		return "nil"
	}
	s := make([]string, 0, 6)
	s = append(s, "&carnotpb.TransferResultChunkRequest_QueryExecutionAndTimingInfo{")
	if this.ExecutionStats != nil {
		s = append(s, "ExecutionStats: "+fmt.Sprintf("%#v", this.ExecutionStats)+",\n")
	}
	if this.AgentExecutionStats != nil {
		s = append(s, "AgentExecutionStats: "+fmt.Sprintf("%#v", this.AgentExecutionStats)+",\n")
	}
	s = append(s, "}")
	return strings.Join(s, "")
}
func (this *TransferResultChunkRequest_InitiateConnection) GoString() string {
	if this == nil {
		return "nil"
	}
	s := make([]string, 0, 4)
	s = append(s, "&carnotpb.TransferResultChunkRequest_InitiateConnection{")
	s = append(s, "}")
	return strings.Join(s, "")
}
func (this *TransferResultChunkResponse) GoString() string {
	if this == nil {
		return "nil"
	}
	s := make([]string, 0, 6)
	s = append(s, "&carnotpb.TransferResultChunkResponse{")
	s = append(s, "Success: "+fmt.Sprintf("%#v", this.Success)+",\n")
	s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
	s = append(s, "}")
	return strings.Join(s, "")
}
func valueToGoStringCarnot(v interface{}, typ string) string {
	rv := reflect.ValueOf(v)
	if rv.IsNil() {
		return "nil"
	}
	pv := reflect.Indirect(rv).Interface()
	return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
}

// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn

// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4

// ResultSinkServiceClient is the client API for ResultSinkService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ResultSinkServiceClient interface {
	TransferResultChunk(ctx context.Context, opts ...grpc.CallOption) (ResultSinkService_TransferResultChunkClient, error)
}

type resultSinkServiceClient struct {
	cc *grpc.ClientConn
}

func NewResultSinkServiceClient(cc *grpc.ClientConn) ResultSinkServiceClient {
	return &resultSinkServiceClient{cc}
}

func (c *resultSinkServiceClient) TransferResultChunk(ctx context.Context, opts ...grpc.CallOption) (ResultSinkService_TransferResultChunkClient, error) {
	stream, err := c.cc.NewStream(ctx, &_ResultSinkService_serviceDesc.Streams[0], "/px.carnotpb.ResultSinkService/TransferResultChunk", opts...)
	if err != nil {
		return nil, err
	}
	x := &resultSinkServiceTransferResultChunkClient{stream}
	return x, nil
}

type ResultSinkService_TransferResultChunkClient interface {
	Send(*TransferResultChunkRequest) error
	CloseAndRecv() (*TransferResultChunkResponse, error)
	grpc.ClientStream
}

type resultSinkServiceTransferResultChunkClient struct {
	grpc.ClientStream
}

func (x *resultSinkServiceTransferResultChunkClient) Send(m *TransferResultChunkRequest) error {
	return x.ClientStream.SendMsg(m)
}

func (x *resultSinkServiceTransferResultChunkClient) CloseAndRecv() (*TransferResultChunkResponse, error) {
	if err := x.ClientStream.CloseSend(); err != nil {
		return nil, err
	}
	m := new(TransferResultChunkResponse)
	if err := x.ClientStream.RecvMsg(m); err != nil {
		return nil, err
	}
	return m, nil
}

// ResultSinkServiceServer is the server API for ResultSinkService service.
type ResultSinkServiceServer interface {
	TransferResultChunk(ResultSinkService_TransferResultChunkServer) error
}

// UnimplementedResultSinkServiceServer can be embedded to have forward compatible implementations.
type UnimplementedResultSinkServiceServer struct {
}

func (*UnimplementedResultSinkServiceServer) TransferResultChunk(srv ResultSinkService_TransferResultChunkServer) error {
	return status.Errorf(codes.Unimplemented, "method TransferResultChunk not implemented")
}

func RegisterResultSinkServiceServer(s *grpc.Server, srv ResultSinkServiceServer) {
	s.RegisterService(&_ResultSinkService_serviceDesc, srv)
}

func _ResultSinkService_TransferResultChunk_Handler(srv interface{}, stream grpc.ServerStream) error {
	return srv.(ResultSinkServiceServer).TransferResultChunk(&resultSinkServiceTransferResultChunkServer{stream})
}

type ResultSinkService_TransferResultChunkServer interface {
	SendAndClose(*TransferResultChunkResponse) error
	Recv() (*TransferResultChunkRequest, error)
	grpc.ServerStream
}

type resultSinkServiceTransferResultChunkServer struct {
	grpc.ServerStream
}

func (x *resultSinkServiceTransferResultChunkServer) SendAndClose(m *TransferResultChunkResponse) error {
	return x.ServerStream.SendMsg(m)
}

func (x *resultSinkServiceTransferResultChunkServer) Recv() (*TransferResultChunkRequest, error) {
	m := new(TransferResultChunkRequest)
	if err := x.ServerStream.RecvMsg(m); err != nil {
		return nil, err
	}
	return m, nil
}

var _ResultSinkService_serviceDesc = grpc.ServiceDesc{
	ServiceName: "px.carnotpb.ResultSinkService",
	HandlerType: (*ResultSinkServiceServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "TransferResultChunk",
			Handler:       _ResultSinkService_TransferResultChunk_Handler,
			ClientStreams: true,
		},
	},
	Metadata: "src/carnot/carnotpb/carnot.proto",
}

func (m *TransferResultChunkRequest) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
	n, err := m.MarshalToSizedBuffer(dAtA[:size])
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *TransferResultChunkRequest) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *TransferResultChunkRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	if m.Result != nil {
		{
			size := m.Result.Size()
			i -= size
			if _, err := m.Result.MarshalTo(dAtA[i:]); err != nil {
				return 0, err
			}
		}
	}
	if m.QueryID != nil {
		{
			size, err := m.QueryID.MarshalToSizedBuffer(dAtA[:i])
			if err != nil {
				return 0, err
			}
			i -= size
			i = encodeVarintCarnot(dAtA, i, uint64(size))
		}
		i--
		dAtA[i] = 0x12
	}
	if len(m.Address) > 0 {
		i -= len(m.Address)
		copy(dAtA[i:], m.Address)
		i = encodeVarintCarnot(dAtA, i, uint64(len(m.Address)))
		i--
		dAtA[i] = 0xa
	}
	return len(dAtA) - i, nil
}

func (m *TransferResultChunkRequest_QueryResult) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *TransferResultChunkRequest_QueryResult) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	if m.QueryResult != nil {
		{
			size, err := m.QueryResult.MarshalToSizedBuffer(dAtA[:i])
			if err != nil {
				return 0, err
			}
			i -= size
			i = encodeVarintCarnot(dAtA, i, uint64(size))
		}
		i--
		dAtA[i] = 0x2a
	}
	return len(dAtA) - i, nil
}
func (m *TransferResultChunkRequest_ExecutionAndTimingInfo) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *TransferResultChunkRequest_ExecutionAndTimingInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	if m.ExecutionAndTimingInfo != nil {
		{
			size, err := m.ExecutionAndTimingInfo.MarshalToSizedBuffer(dAtA[:i])
			if err != nil {
				return 0, err
			}
			i -= size
			i = encodeVarintCarnot(dAtA, i, uint64(size))
		}
		i--
		dAtA[i] = 0x32
	}
	return len(dAtA) - i, nil
}
func (m *TransferResultChunkRequest_ExecutionError) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *TransferResultChunkRequest_ExecutionError) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	if m.ExecutionError != nil {
		{
			size, err := m.ExecutionError.MarshalToSizedBuffer(dAtA[:i])
			if err != nil {
				return 0, err
			}
			i -= size
			i = encodeVarintCarnot(dAtA, i, uint64(size))
		}
		i--
		dAtA[i] = 0x3a
	}
	return len(dAtA) - i, nil
}
func (m *TransferResultChunkRequest_InitiateConn) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *TransferResultChunkRequest_InitiateConn) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	if m.InitiateConn != nil {
		{
			size, err := m.InitiateConn.MarshalToSizedBuffer(dAtA[:i])
			if err != nil {
				return 0, err
			}
			i -= size
			i = encodeVarintCarnot(dAtA, i, uint64(size))
		}
		i--
		dAtA[i] = 0x42
	}
	return len(dAtA) - i, nil
}
func (m *TransferResultChunkRequest_SinkResult) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
	n, err := m.MarshalToSizedBuffer(dAtA[:size])
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *TransferResultChunkRequest_SinkResult) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *TransferResultChunkRequest_SinkResult) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	if m.Destination != nil {
		{
			size := m.Destination.Size()
			i -= size
			if _, err := m.Destination.MarshalTo(dAtA[i:]); err != nil {
				return 0, err
			}
		}
	}
	if m.ResultContents != nil {
		{
			size := m.ResultContents.Size()
			i -= size
			if _, err := m.ResultContents.MarshalTo(dAtA[i:]); err != nil {
				return 0, err
			}
		}
	}
	return len(dAtA) - i, nil
}

func (m *TransferResultChunkRequest_SinkResult_RowBatch) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *TransferResultChunkRequest_SinkResult_RowBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	if m.RowBatch != nil {
		{
			size, err := m.RowBatch.MarshalToSizedBuffer(dAtA[:i])
			if err != nil {
				return 0, err
			}
			i -= size
			i = encodeVarintCarnot(dAtA, i, uint64(size))
		}
		i--
		dAtA[i] = 0xa
	}
	return len(dAtA) - i, nil
}
func (m *TransferResultChunkRequest_SinkResult_GRPCSourceID) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *TransferResultChunkRequest_SinkResult_GRPCSourceID) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	i = encodeVarintCarnot(dAtA, i, uint64(m.GRPCSourceID))
	i--
	dAtA[i] = 0x10
	return len(dAtA) - i, nil
}
func (m *TransferResultChunkRequest_SinkResult_TableName) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *TransferResultChunkRequest_SinkResult_TableName) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	i -= len(m.TableName)
	copy(dAtA[i:], m.TableName)
	i = encodeVarintCarnot(dAtA, i, uint64(len(m.TableName)))
	i--
	dAtA[i] = 0x1a
	return len(dAtA) - i, nil
}
func (m *TransferResultChunkRequest_QueryExecutionAndTimingInfo) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
	n, err := m.MarshalToSizedBuffer(dAtA[:size])
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *TransferResultChunkRequest_QueryExecutionAndTimingInfo) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *TransferResultChunkRequest_QueryExecutionAndTimingInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	if len(m.AgentExecutionStats) > 0 {
		for iNdEx := len(m.AgentExecutionStats) - 1; iNdEx >= 0; iNdEx-- {
			{
				size, err := m.AgentExecutionStats[iNdEx].MarshalToSizedBuffer(dAtA[:i])
				if err != nil {
					return 0, err
				}
				i -= size
				i = encodeVarintCarnot(dAtA, i, uint64(size))
			}
			i--
			dAtA[i] = 0x1a
		}
	}
	if m.ExecutionStats != nil {
		{
			size, err := m.ExecutionStats.MarshalToSizedBuffer(dAtA[:i])
			if err != nil {
				return 0, err
			}
			i -= size
			i = encodeVarintCarnot(dAtA, i, uint64(size))
		}
		i--
		dAtA[i] = 0x12
	}
	return len(dAtA) - i, nil
}

func (m *TransferResultChunkRequest_InitiateConnection) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
	n, err := m.MarshalToSizedBuffer(dAtA[:size])
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *TransferResultChunkRequest_InitiateConnection) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *TransferResultChunkRequest_InitiateConnection) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	return len(dAtA) - i, nil
}

func (m *TransferResultChunkResponse) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
	n, err := m.MarshalToSizedBuffer(dAtA[:size])
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *TransferResultChunkResponse) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *TransferResultChunkResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	if len(m.Message) > 0 {
		i -= len(m.Message)
		copy(dAtA[i:], m.Message)
		i = encodeVarintCarnot(dAtA, i, uint64(len(m.Message)))
		i--
		dAtA[i] = 0x12
	}
	if m.Success {
		i--
		if m.Success {
			dAtA[i] = 1
		} else {
			dAtA[i] = 0
		}
		i--
		dAtA[i] = 0x8
	}
	return len(dAtA) - i, nil
}

func encodeVarintCarnot(dAtA []byte, offset int, v uint64) int {
	offset -= sovCarnot(v)
	base := offset
	for v >= 1<<7 {
		dAtA[offset] = uint8(v&0x7f | 0x80)
		v >>= 7
		offset++
	}
	dAtA[offset] = uint8(v)
	return base
}
func (m *TransferResultChunkRequest) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	l = len(m.Address)
	if l > 0 {
		n += 1 + l + sovCarnot(uint64(l))
	}
	if m.QueryID != nil {
		l = m.QueryID.Size()
		n += 1 + l + sovCarnot(uint64(l))
	}
	if m.Result != nil {
		n += m.Result.Size()
	}
	return n
}

func (m *TransferResultChunkRequest_QueryResult) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.QueryResult != nil {
		l = m.QueryResult.Size()
		n += 1 + l + sovCarnot(uint64(l))
	}
	return n
}
func (m *TransferResultChunkRequest_ExecutionAndTimingInfo) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.ExecutionAndTimingInfo != nil {
		l = m.ExecutionAndTimingInfo.Size()
		n += 1 + l + sovCarnot(uint64(l))
	}
	return n
}
func (m *TransferResultChunkRequest_ExecutionError) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.ExecutionError != nil {
		l = m.ExecutionError.Size()
		n += 1 + l + sovCarnot(uint64(l))
	}
	return n
}
func (m *TransferResultChunkRequest_InitiateConn) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.InitiateConn != nil {
		l = m.InitiateConn.Size()
		n += 1 + l + sovCarnot(uint64(l))
	}
	return n
}
func (m *TransferResultChunkRequest_SinkResult) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.ResultContents != nil {
		n += m.ResultContents.Size()
	}
	if m.Destination != nil {
		n += m.Destination.Size()
	}
	return n
}

func (m *TransferResultChunkRequest_SinkResult_RowBatch) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.RowBatch != nil {
		l = m.RowBatch.Size()
		n += 1 + l + sovCarnot(uint64(l))
	}
	return n
}
func (m *TransferResultChunkRequest_SinkResult_GRPCSourceID) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	n += 1 + sovCarnot(uint64(m.GRPCSourceID))
	return n
}
func (m *TransferResultChunkRequest_SinkResult_TableName) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	l = len(m.TableName)
	n += 1 + l + sovCarnot(uint64(l))
	return n
}
func (m *TransferResultChunkRequest_QueryExecutionAndTimingInfo) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.ExecutionStats != nil {
		l = m.ExecutionStats.Size()
		n += 1 + l + sovCarnot(uint64(l))
	}
	if len(m.AgentExecutionStats) > 0 {
		for _, e := range m.AgentExecutionStats {
			l = e.Size()
			n += 1 + l + sovCarnot(uint64(l))
		}
	}
	return n
}

func (m *TransferResultChunkRequest_InitiateConnection) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	return n
}

func (m *TransferResultChunkResponse) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.Success {
		n += 2
	}
	l = len(m.Message)
	if l > 0 {
		n += 1 + l + sovCarnot(uint64(l))
	}
	return n
}

func sovCarnot(x uint64) (n int) {
	return (math_bits.Len64(x|1) + 6) / 7
}
func sozCarnot(x uint64) (n int) {
	return sovCarnot(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (this *TransferResultChunkRequest) String() string {
	if this == nil {
		return "nil"
	}
	s := strings.Join([]string{`&TransferResultChunkRequest{`,
		`Address:` + fmt.Sprintf("%v", this.Address) + `,`,
		`QueryID:` + strings.Replace(fmt.Sprintf("%v", this.QueryID), "UUID", "uuidpb.UUID", 1) + `,`,
		`Result:` + fmt.Sprintf("%v", this.Result) + `,`,
		`}`,
	}, "")
	return s
}
func (this *TransferResultChunkRequest_QueryResult) String() string {
	if this == nil {
		return "nil"
	}
	s := strings.Join([]string{`&TransferResultChunkRequest_QueryResult{`,
		`QueryResult:` + strings.Replace(fmt.Sprintf("%v", this.QueryResult), "TransferResultChunkRequest_SinkResult", "TransferResultChunkRequest_SinkResult", 1) + `,`,
		`}`,
	}, "")
	return s
}
func (this *TransferResultChunkRequest_ExecutionAndTimingInfo) String() string {
	if this == nil {
		return "nil"
	}
	s := strings.Join([]string{`&TransferResultChunkRequest_ExecutionAndTimingInfo{`,
		`ExecutionAndTimingInfo:` + strings.Replace(fmt.Sprintf("%v", this.ExecutionAndTimingInfo), "TransferResultChunkRequest_QueryExecutionAndTimingInfo", "TransferResultChunkRequest_QueryExecutionAndTimingInfo", 1) + `,`,
		`}`,
	}, "")
	return s
}
func (this *TransferResultChunkRequest_ExecutionError) String() string {
	if this == nil {
		return "nil"
	}
	s := strings.Join([]string{`&TransferResultChunkRequest_ExecutionError{`,
		`ExecutionError:` + strings.Replace(fmt.Sprintf("%v", this.ExecutionError), "Status", "statuspb.Status", 1) + `,`,
		`}`,
	}, "")
	return s
}
func (this *TransferResultChunkRequest_InitiateConn) String() string {
	if this == nil {
		return "nil"
	}
	s := strings.Join([]string{`&TransferResultChunkRequest_InitiateConn{`,
		`InitiateConn:` + strings.Replace(fmt.Sprintf("%v", this.InitiateConn), "TransferResultChunkRequest_InitiateConnection", "TransferResultChunkRequest_InitiateConnection", 1) + `,`,
		`}`,
	}, "")
	return s
}
func (this *TransferResultChunkRequest_SinkResult) String() string {
	if this == nil {
		return "nil"
	}
	s := strings.Join([]string{`&TransferResultChunkRequest_SinkResult{`,
		`ResultContents:` + fmt.Sprintf("%v", this.ResultContents) + `,`,
		`Destination:` + fmt.Sprintf("%v", this.Destination) + `,`,
		`}`,
	}, "")
	return s
}
func (this *TransferResultChunkRequest_SinkResult_RowBatch) String() string {
	if this == nil {
		return "nil"
	}
	s := strings.Join([]string{`&TransferResultChunkRequest_SinkResult_RowBatch{`,
		`RowBatch:` + strings.Replace(fmt.Sprintf("%v", this.RowBatch), "RowBatchData", "schemapb.RowBatchData", 1) + `,`,
		`}`,
	}, "")
	return s
}
func (this *TransferResultChunkRequest_SinkResult_GRPCSourceID) String() string {
	if this == nil {
		return "nil"
	}
	s := strings.Join([]string{`&TransferResultChunkRequest_SinkResult_GRPCSourceID{`,
		`GRPCSourceID:` + fmt.Sprintf("%v", this.GRPCSourceID) + `,`,
		`}`,
	}, "")
	return s
}
func (this *TransferResultChunkRequest_SinkResult_TableName) String() string {
	if this == nil {
		return "nil"
	}
	s := strings.Join([]string{`&TransferResultChunkRequest_SinkResult_TableName{`,
		`TableName:` + fmt.Sprintf("%v", this.TableName) + `,`,
		`}`,
	}, "")
	return s
}
func (this *TransferResultChunkRequest_QueryExecutionAndTimingInfo) String() string {
	if this == nil {
		return "nil"
	}
	repeatedStringForAgentExecutionStats := "[]*AgentExecutionStats{"
	for _, f := range this.AgentExecutionStats {
		repeatedStringForAgentExecutionStats += strings.Replace(fmt.Sprintf("%v", f), "AgentExecutionStats", "queryresultspb.AgentExecutionStats", 1) + ","
	}
	repeatedStringForAgentExecutionStats += "}"
	s := strings.Join([]string{`&TransferResultChunkRequest_QueryExecutionAndTimingInfo{`,
		`ExecutionStats:` + strings.Replace(fmt.Sprintf("%v", this.ExecutionStats), "QueryExecutionStats", "queryresultspb.QueryExecutionStats", 1) + `,`,
		`AgentExecutionStats:` + repeatedStringForAgentExecutionStats + `,`,
		`}`,
	}, "")
	return s
}
func (this *TransferResultChunkRequest_InitiateConnection) String() string {
	if this == nil {
		return "nil"
	}
	s := strings.Join([]string{`&TransferResultChunkRequest_InitiateConnection{`,
		`}`,
	}, "")
	return s
}
func (this *TransferResultChunkResponse) String() string {
	if this == nil {
		return "nil"
	}
	s := strings.Join([]string{`&TransferResultChunkResponse{`,
		`Success:` + fmt.Sprintf("%v", this.Success) + `,`,
		`Message:` + fmt.Sprintf("%v", this.Message) + `,`,
		`}`,
	}, "")
	return s
}
func valueToStringCarnot(v interface{}) string {
	rv := reflect.ValueOf(v)
	if rv.IsNil() {
		return "nil"
	}
	pv := reflect.Indirect(rv).Interface()
	return fmt.Sprintf("*%v", pv)
}
func (m *TransferResultChunkRequest) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowCarnot
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
			wire |= uint64(b&0x7F) << shift
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: TransferResultChunkRequest: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: TransferResultChunkRequest: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
			}
			var stringLen uint64
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowCarnot
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				stringLen |= uint64(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			intStringLen := int(stringLen)
			if intStringLen < 0 {
				return ErrInvalidLengthCarnot
			}
			postIndex := iNdEx + intStringLen
			if postIndex < 0 {
				return ErrInvalidLengthCarnot
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.Address = string(dAtA[iNdEx:postIndex])
			iNdEx = postIndex
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field QueryID", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowCarnot
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthCarnot
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthCarnot
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			if m.QueryID == nil {
				m.QueryID = &uuidpb.UUID{}
			}
			if err := m.QueryID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		case 5:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field QueryResult", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowCarnot
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthCarnot
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthCarnot
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			v := &TransferResultChunkRequest_SinkResult{}
			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			m.Result = &TransferResultChunkRequest_QueryResult{v}
			iNdEx = postIndex
		case 6:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field ExecutionAndTimingInfo", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowCarnot
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthCarnot
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthCarnot
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			v := &TransferResultChunkRequest_QueryExecutionAndTimingInfo{}
			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			m.Result = &TransferResultChunkRequest_ExecutionAndTimingInfo{v}
			iNdEx = postIndex
		case 7:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field ExecutionError", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowCarnot
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthCarnot
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthCarnot
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			v := &statuspb.Status{}
			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			m.Result = &TransferResultChunkRequest_ExecutionError{v}
			iNdEx = postIndex
		case 8:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field InitiateConn", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowCarnot
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthCarnot
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthCarnot
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			v := &TransferResultChunkRequest_InitiateConnection{}
			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			m.Result = &TransferResultChunkRequest_InitiateConn{v}
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipCarnot(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if (skippy < 0) || (iNdEx+skippy) < 0 {
				return ErrInvalidLengthCarnot
			}
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *TransferResultChunkRequest_SinkResult) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowCarnot
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
			wire |= uint64(b&0x7F) << shift
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: SinkResult: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: SinkResult: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field RowBatch", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowCarnot
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthCarnot
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthCarnot
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			v := &schemapb.RowBatchData{}
			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			m.ResultContents = &TransferResultChunkRequest_SinkResult_RowBatch{v}
			iNdEx = postIndex
		case 2:
			if wireType != 0 {
				return fmt.Errorf("proto: wrong wireType = %d for field GRPCSourceID", wireType)
			}
			var v uint64
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowCarnot
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				v |= uint64(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			m.Destination = &TransferResultChunkRequest_SinkResult_GRPCSourceID{v}
		case 3:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field TableName", wireType)
			}
			var stringLen uint64
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowCarnot
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				stringLen |= uint64(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			intStringLen := int(stringLen)
			if intStringLen < 0 {
				return ErrInvalidLengthCarnot
			}
			postIndex := iNdEx + intStringLen
			if postIndex < 0 {
				return ErrInvalidLengthCarnot
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.Destination = &TransferResultChunkRequest_SinkResult_TableName{string(dAtA[iNdEx:postIndex])}
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipCarnot(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if (skippy < 0) || (iNdEx+skippy) < 0 {
				return ErrInvalidLengthCarnot
			}
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *TransferResultChunkRequest_QueryExecutionAndTimingInfo) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowCarnot
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
			wire |= uint64(b&0x7F) << shift
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: QueryExecutionAndTimingInfo: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: QueryExecutionAndTimingInfo: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field ExecutionStats", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowCarnot
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthCarnot
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthCarnot
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			if m.ExecutionStats == nil {
				m.ExecutionStats = &queryresultspb.QueryExecutionStats{}
			}
			if err := m.ExecutionStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		case 3:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field AgentExecutionStats", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowCarnot
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthCarnot
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthCarnot
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.AgentExecutionStats = append(m.AgentExecutionStats, &queryresultspb.AgentExecutionStats{})
			if err := m.AgentExecutionStats[len(m.AgentExecutionStats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipCarnot(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if (skippy < 0) || (iNdEx+skippy) < 0 {
				return ErrInvalidLengthCarnot
			}
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *TransferResultChunkRequest_InitiateConnection) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowCarnot
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
			wire |= uint64(b&0x7F) << shift
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: InitiateConnection: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: InitiateConnection: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		default:
			iNdEx = preIndex
			skippy, err := skipCarnot(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if (skippy < 0) || (iNdEx+skippy) < 0 {
				return ErrInvalidLengthCarnot
			}
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *TransferResultChunkResponse) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowCarnot
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
			wire |= uint64(b&0x7F) << shift
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: TransferResultChunkResponse: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: TransferResultChunkResponse: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 0 {
				return fmt.Errorf("proto: wrong wireType = %d for field Success", wireType)
			}
			var v int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowCarnot
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				v |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			m.Success = bool(v != 0)
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
			}
			var stringLen uint64
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowCarnot
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				stringLen |= uint64(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			intStringLen := int(stringLen)
			if intStringLen < 0 {
				return ErrInvalidLengthCarnot
			}
			postIndex := iNdEx + intStringLen
			if postIndex < 0 {
				return ErrInvalidLengthCarnot
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.Message = string(dAtA[iNdEx:postIndex])
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipCarnot(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if (skippy < 0) || (iNdEx+skippy) < 0 {
				return ErrInvalidLengthCarnot
			}
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func skipCarnot(dAtA []byte) (n int, err error) {
	l := len(dAtA)
	iNdEx := 0
	depth := 0
	for iNdEx < l {
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return 0, ErrIntOverflowCarnot
			}
			if iNdEx >= l {
				return 0, io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
			wire |= (uint64(b) & 0x7F) << shift
			if b < 0x80 {
				break
			}
		}
		wireType := int(wire & 0x7)
		switch wireType {
		case 0:
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return 0, ErrIntOverflowCarnot
				}
				if iNdEx >= l {
					return 0, io.ErrUnexpectedEOF
				}
				iNdEx++
				if dAtA[iNdEx-1] < 0x80 {
					break
				}
			}
		case 1:
			iNdEx += 8
		case 2:
			var length int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return 0, ErrIntOverflowCarnot
				}
				if iNdEx >= l {
					return 0, io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				length |= (int(b) & 0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if length < 0 {
				return 0, ErrInvalidLengthCarnot
			}
			iNdEx += length
		case 3:
			depth++
		case 4:
			if depth == 0 {
				return 0, ErrUnexpectedEndOfGroupCarnot
			}
			depth--
		case 5:
			iNdEx += 4
		default:
			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
		}
		if iNdEx < 0 {
			return 0, ErrInvalidLengthCarnot
		}
		if depth == 0 {
			return iNdEx, nil
		}
	}
	return 0, io.ErrUnexpectedEOF
}

var (
	ErrInvalidLengthCarnot        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCarnot          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCarnot = fmt.Errorf("proto: unexpected end of group")
)
